package com.caseeye.dao

import com.caseeye.base._

import org.springframework.stereotype.Component
import com.caseeye.model._
import com.caseeye.base.Imports._

import com.novus.casbah.mongodb.Imports._

@Component
class CaseMasterDAO extends GenericDAO[CaseMaster] {

    def findByTitle(title : String) : List[CaseMaster] = {
        query("title" -> title)
    }
}